#include "esp_event.h"
#include "my_events.h"

esp_event_loop_handle_t my_event_loop_handle;

static const char *TAG = "MYEVENTLOOP";

const char *MY_EVENT_BASE = "my_event_base";

void init_event_loop(void)
{
     esp_event_loop_args_t loop_args = {
        .queue_size = 32,
        .task_name = "my_eventloop_task",
        .task_priority = 5,
        .task_stack_size = 4096,
        .task_core_id = 0
    };

    esp_event_loop_create(&loop_args, &my_event_loop_handle);
}
